//
//  Constants.h
//  huizon
//
//  Created by Yang on 13-11-8.
//  Copyright (c) 2013年 zhaopin. All rights reserved.
//

/*
  在project,targe修改 project Name "new name", 单击target的名称后，可以修改
 */
#ifndef Constants_h
#define Constants_h

///打印日志，发布时关闭
//TODO: app store delete
//#define DEBUG_REVEL 1


///宏提速NSCoding
#define OBJC_STRINGIFY(x) @#x
#define encodeObject(x) [aCoder encodeObject:x forKey:OBJC_STRINGIFY(x)]
#define decodeObject(x) x = [aDecoder decodeObjectForKey:OBJC_STRINGIFY(x)]

#define THEME_COLOR [UIColor colorWithHexString:@"f04137"]

///判断是否是ios7
#define isIOS7 (DeviceSystemMajorVersion()< 7 ? NO:YES)
#define isIOS8 (DeviceSystemMajorVersion()< 8 ? NO:YES)

#define theApp ((AppDelegate *)[[UIApplication sharedApplication] delegate])

#define ScreenHeight [[UIScreen mainScreen] bounds].size.height
#define ScreenWidth [[UIScreen mainScreen] bounds].size.width

#define KeyWindow       [[UIApplication sharedApplication] keyWindow]

#define MainWindow      [[[UIApplication sharedApplication] delegate] window]


/////share sdk
//static NSString * const kShareKey = @"21ce7ed095e8";
///// 友盟配置
//static NSString * const kUmengAppKey = @"543f7ee2fd98c57a5b004267";
///**
// *  微信
// */
//static NSString * const kWeiXinAppKey = @"wx4ed85b7f8672ce79";
/////新浪微博
//static NSString * const kSinaRedirectURL = @"http://zouzou.com";
//static NSString * const kSinaAppKey  = @"2876312252";
//static NSString * const kSinaAppSecret = @"9e12424e5522e3eb8f69c741410a47a5";
////qq 登陆能力
//static NSString * const kQQAppKey = @"1102580649";
//static NSString * const kQQAppSecret = @"CaaYHcJOzCjY436Y";

#endif